<HTML> 
<HEAD> 
	<TITLE>3rd Party ROBOTC Drivers</TITLE> 
<link href="tabs.css" rel="stylesheet" type="text/css"/> 
<link href="doxygen.css" rel="stylesheet" type="text/css"/> 
</HEAD> 
 
<BODY bgcolor="#ffffff" link="#000000" vlink="#000000"> 
<table width="100%" bgcolor="navy" cellspacing=0 cellpadding=1 border=0> 
<tr><td><table width="100%" bgcolor="#EEEEDD" cellspacing=0 cellpadding=3 border=0> 
<tr> 
    <td width="33%" align="left"> <img src="images/LOGO_NXT.gif" width=266 height=44 border="0" alt="Mindstorms"></td> 
    <td><b><font size="+3" color="navy">3rd Party ROBOTC Drivers</font></b></td> 
    <td align="right"> <img src="images/logo.png" width=44 height=44 border="0" alt="RobotC"></td>     
</tr> 
  <tr bgcolor="#cccc99" align="right"> 
          <td colspan=3> <font face="arial" size="-1"> [<a href=main.html>Home</a>] [<a target=_top href="https://sourceforge.net/projects/rdpartyrobotcdr/">Download</a>] [<a target=_top href="http://apps.sourceforge.net/mantisbt/rdpartyrobotcdr/my_view_page.php">Submit a bug/suggestion</a>]  [<a target=_top href="http://www.robotc.net/forums/">ROBOTC Forums</a>] [<a target=_top href="http://botbench.com">Blog</a>] [<a target=_top href="http://sourceforge.net/donate/index.php?group_id=257238">Support this project</a>]</font> </td> 
</tr> 
</table></td></tr> 
</table> 
<!-- Generated by Doxygen 1.7.2 -->
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>mindsensors-imu.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Mindsensors AbsoluteIMU Sensor driver.  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="common_8h_source.html">common.h</a>&quot;</code><br/>

<p><a href="mindsensors-imu_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gae90c6c346fd2ea07d29dd5312f69a38c">MSIMU_IMU_I2C_ADDR</a>&#160;&#160;&#160;0x22</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gaf0b1aebfb7bcbece8a48e41e22d381d4">MSIMU_REG_CMD</a>&#160;&#160;&#160;0x41</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gad51c9b76f348df2462e82013ac22cb98">MSIMU_REG_TILT_ALL_AXES</a>&#160;&#160;&#160;0x42</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga15de9f02904e24957dea410855d5b5e4">MSIMU_REG_ACC_ALL_AXES</a>&#160;&#160;&#160;0x45</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gaa9876d9b5b9d3b7dfd15bc520fab614e">MSIMU_REG_COMPASS_HEADING</a>&#160;&#160;&#160;0x4B</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga5c8fb09b4f85fb73e192fd84c56bbcc5">MSIMU_REG_COMPASS_ALL_FIELDS</a>&#160;&#160;&#160;0x4D</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gae32355c9166051c7fd3a544c1718ada2">MSIMU_REG_GYRO_ALL_AXES</a>&#160;&#160;&#160;0x53</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga4dd0432a1d355b19202419cd4fcf4d84">MSIMU_REG_GYRO_FILTER</a>&#160;&#160;&#160;0x5A</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga03707ad1b87c0699dcd147b513f049a7">MSIMU_CMD_COMPASS_START_CAL</a>&#160;&#160;&#160;0x43</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gab97fdb2bc29124f6b50934899cea60d6">MSIMU_CMD_COMPASS_STOP_CAL</a>&#160;&#160;&#160;0x63</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gab3d39ed6945825ae545b87fd2e96597a">MSIMU_CMD_ACC_RANGE_2G</a>&#160;&#160;&#160;0x31</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga1db8e9184ae78cef3d5e565c59361da5">MSIMU_CMD_ACC_RANGE_4G</a>&#160;&#160;&#160;0x32</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gad4329324a23af016799f0b000ec01871">MSIMU_CMD_ACC_RANGE_8G</a>&#160;&#160;&#160;0x33</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga1e58091391f56ea0515edb0b571d67a2">MSIMU_CMD_ACC_RANGE_16G</a>&#160;&#160;&#160;0x34</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gaad4e02250e95a5c4a00c9b85b5d7e6de">MSIMU_GYRO_FILTER_NONE</a>&#160;&#160;&#160;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gae717964be01f52e604d04a8174a3c0f2">MSIMU_GYRO_FILTER_LEVEL_1</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gac4efe3bd68c952f77879d7c65aab2822">MSIMU_GYRO_FILTER_LEVEL_2</a>&#160;&#160;&#160;2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gacdf968da85c234429f33952f641a09fe">MSIMU_GYRO_FILTER_LEVEL_3</a>&#160;&#160;&#160;3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gaa584c6fef1c88757433e48cbe8ab9b98">MSIMU_GYRO_FILTER_LEVEL_4</a>&#160;&#160;&#160;4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga3bb543a8e7610eb89f40b2582519fccc">MSIMU_GYRO_FILTER_LEVEL_5</a>&#160;&#160;&#160;5</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gab6f4423d9dc7a519800fe875f3501524">MSIMU_GYRO_FILTER_LEVEL_6</a>&#160;&#160;&#160;6</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga9189a10c20c1d68d511645ad933653a7">MSIMU_GYRO_FILTER_LEVEL_7</a>&#160;&#160;&#160;7</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gaf1b80334857e08e7577840d80f442ebe">MSIMU_TILT_X_AXIS</a>&#160;&#160;&#160;MSIMU_REG_TILT_X_AXIS</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga90c69d6d0c15458904534580dbea83a2">MSIMU_TILT_Y_AXIS</a>&#160;&#160;&#160;MSIMU_REG_TILT_Y_AXIS</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gacdac62e500702d32541e273251ef57bc">MSIMU_TILT_Z_AXIS</a>&#160;&#160;&#160;MSIMU_REG_TILT_Z_AXIS</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga5ff47a32e57466e62f92f2fea44465b7">MSIMU_ACC_X_AXIS</a>&#160;&#160;&#160;MSIMU_REG_ACC_X_AXIS</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga5822f1c91b7db7aed055972b79e942f2">MSIMU_ACC_Y_AXIS</a>&#160;&#160;&#160;MSIMU_REG_ACC_Y_AXIS</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga938a63a8a640ef9f6a7f40dd6fac006f">MSIMU_ACC_Z_AXIS</a>&#160;&#160;&#160;MSIMU_REG_ACC_Z_AXIS</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga46f1427746efe302ba98c3fb3d4603e2">MSIMU_GYRO_X_AXIS</a>&#160;&#160;&#160;MSIMU_REG_GYRO_X_AXIS</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga4e8e8882a6b8639ea5687f5c965f0d0e">MSIMU_GYRO_Y_AXIS</a>&#160;&#160;&#160;MSIMU_REG_GYRO_Y_AXIS</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga3bf852de2191458bd76efa56a4b5590b">MSIMU_GYRO_Z_AXIS</a>&#160;&#160;&#160;MSIMU_REG_GYRO_Z_AXIS</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga620eca05759c968f9ec07f43ac48b180">_MSIMUsendCMD</a> (tSensors link, ubyte cmd)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga253f914b8feec4f753115641526ea23a">MSIMUreadTiltAxes</a> (tSensors link, int &amp;_x, int &amp;_y, int &amp;_z)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga8631f671fa303d83d25e7eb0c1b38fb5">MSIMUreadGyroAxes</a> (tSensors link, int &amp;_x, int &amp;_y, int &amp;_z)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gad34ae53b61b5a0b5adc0a23e1e209acd">MSIMUreadAccelAxes</a> (tSensors link, int &amp;_x, int &amp;_y, int &amp;_z)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gaf260cb22f3e20cba7616ef493686eeca">MSIMUreadMagneticFields</a> (tSensors link, int &amp;_x, int &amp;_y, int &amp;_z)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gaa22086625869ed957b7f55415f6bd905">MSIMUreadHeading</a> (tSensors link)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga851b0927cb806cea01197fe59f5b7cc2">MSIMUsetGyroFilter</a> (tSensors link, ubyte level)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#gac2d44510ac67a1cf2c4657f1b726d79c">MSIMU_I2CRequest</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_i_m_u.html#ga446be502f64e415ceaa9e0f335c6d459">MSIMU_I2CReply</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Mindsensors AbsoluteIMU Sensor driver. </p>
<p><a class="el" href="mindsensors-imu_8h.html" title="Mindsensors AbsoluteIMU Sensor driver.">mindsensors-imu.h</a> provides an API for the Mindsensors AbsoluteIMU Sensor.</p>
<p>Changelog:</p>
<ul>
<li>0.1: Initial release</li>
</ul>
<p>Credits:</p>
<ul>
<li>Big thanks to Mindsensors for providing me with the hardware necessary to write and test this.</li>
</ul>
<p>License: You may use this code as you wish, provided you give credit where its due.</p>
<p>THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Xander Soldaat (xander_at_botbench.com) </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>23 August 2012 </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>0.1 </dd></dl>

<p>Definition in file <a class="el" href="mindsensors-imu_8h_source.html">mindsensors-imu.h</a>.</p>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Mar 13 2013 19:56:43 for ROBOTC Drivers by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
